package com.yy.train.ticket.train.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

/**
 * 车次
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-09-26 09:47:24
 */
@Data
@TableName("tt_train_number")
public class TtTrainNumberEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 车次
	 */
	@TableId
	private Long numberId;
	/**
	 * 车次id
	 */
	private Long trainId;
	/**
	 * 线路id
	 */
	private Long lineId;
	/**
	 * 车次标号
	 */
	private String numberName;
	/**
	 * 运行日期
	 */
/*	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
	private LocalDate runDate;
	/**
	 * 运行时间
	 */
/*	@JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)*/
	private LocalTime runTime;
	/**
	 * 到站时间
	 */
	private Date startTime;
	/**
	 * 发车时间
	 */
	private Date endTime;
	/**
	 * 备注
	 */
	private String note;
	/**
	 * 创建人
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改人
	 */
	private String updateUser;
	/**
	 * 修改时间
	 */
	private Date updateTime;
	@Version
	private Integer version;
	/**
	 * 0:正常，1:删除
	 */
	private Integer sysState;

}
